import { h } from "vue";
import { RouteRecordRaw } from "vue-router";

export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "首页",
    redirect: "/home1",
    children: [{
      path: "/home1",
      name: "home1",
      component: () => import("@/views/home/HomeView.vue"),
    }],
  },
  {
    path: "/question",
    name: "题库",
    component: () => import("@/views/question/QuestionView.vue"),
    children: [], 
  },
  {
    path: "/home3",
    name: "备赛",
    component: () => import("@/views/login/LoginView.vue"),
    children: [], 
  },
  {
    path: "/login",
    name: "登录",
    component: () => import("@/views/login/LoginView.vue"),
    children: [],
    meta: {
      hideInMenu: true,
      hideHeader: true,
    }
  }
];
